import request from '@/utils/request'

const startUrl = '/sse'

/**
 * 断开sse链接的心跳
 */
export const disconnectSse = (userStore) =>
    request.get(startUrl + '/disconnect', {
        headers: {
            'User-Token': userStore.$state.jwtEntity.jwt,
            'User-Secret-Key': userStore.$state.jwtEntity.signKeyStr
        }
    })
